import http from '@/utils/request'


/* 请求首页数据的接口 */
export const getData = () => http.get('/home/getData')

export const getUser = (params) => http.get('/user/getUser', params)

export const addUser = (data) => http.post('/user/add', data)

export const editUser = (data) => http.post('/user/edit', data)

export const delUser = (data) => http.post('/user/del', data)

export const getMenu = (data) => http.post('/permission/getMenu', data) 